#include <bits/stdc++.h>
using namespace std;

#define DEBUG
#ifdef DEBUG
#define TRG_PG(str, argv...) fprintf(stderr, "  TRC_PG(%s:%d):\t" str, __func__, __LINE__, ##argv)
#define debug fprintf(stderr, "DEBUG(%s:%d)\n", __func__, __LINE__)
#else
#define TRG_PG(str, argv...)
#define debug
#endif

const int MAX_N = 1e5 + 10;
int a[MAX_N];
int ans;
int n;

void input()
{
    cin >> n;
    for (int i = 1; i <= n; i++)
    {
        cin >> a[i];
    }
}

void work()
{
    sort(a + 1, a + n + 1);
    int r = 2;
    ans = n;
    for (int l = 1; l <= n; l++)
    {
        while (r <= n && a[r] <= a[l])
            r++;
        if (r <= n)
        {
            ans--;
            r++;
        }
    }
    cout << ans << '\n';
}

int main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr), cout.tie(nullptr);
    input();
    work();
    return 0;
}
